<?php
/**
 * Created by PhpStorm.
 * User: Vito
 * Date: 2022/6/16
 * Time: 14:34
 */

namespace app\api\controller\v1;


use app\api\controller\BaseController;
use app\logic\RepairRateLogic;
use app\admin\curd\repair_rate\RepairRateIndex;
use app\admin\curd\repair_rate\RepairRateSave;

class RepairRate extends BaseController
{
    const NOT_NEED_LOGIN = ['index'];

    protected $name = '保修评价';

    protected $methodName = [
        'index' => '获取列表',
        'save'  => '添加评价'
    ];

    protected function initialize()
    {
        $this->logic = new RepairRateLogic();
    }

    public function index()
    {

        return $this->_index(new RepairRateIndex);
    }

    public function save(){
        return $this->_save(new RepairRateSave);
    }
}

